public class MyRuleAge extends AbstractRule {

    private RuleData ruleData;

    public MyRuleAge() {
    }

    public MyRuleAge(RuleData data) {
        this.ruleData = data;
    }

    @Override
    public Boolean execute() {
        return ruleData.getAge().equals(10);
    }
}
